﻿using System;
using System.Collections.Generic;
using System.Linq;

using System.Text;

namespace Flame.Dlr
{
    public class Share
    {
        static Dictionary<object, object> _map = new Dictionary<object, object>();
        public void set(object name, object value)
        {
            if (_map.ContainsKey(name))
                _map[name] = value;
            else
                _map.Add(name, value);
        }

        public object get(object name)
        {
            if (!_map.ContainsKey(name)) return null;
            return _map[name];
        }
        public object[] keys
        {
            get
            {
                return (from x in _map.Keys select x).ToArray();
            }
        }
    }
}
